package test00.lx04;

import java.util.Arrays;
import java.util.Comparator;

/**
 * @author CSY
 * @date 2025 - 04 - 02
 */
public class MainTest02 {
    public static void main(String[] args) {
        Student[] stus = {
            new Student("张三",18),
            new Student("李四",16),
            new Student("王五",21),
            new Student("赵六",20),
            new Student("小七",14),
        };

        Student[] students = UpSort.upSort(stus);

        for (Student stu : students) {
            System.out.println(stu.getName() + "-" + stu.getAge());
        }
    }
}
